# Contributor: Clayton Craft <clayton@craftyguy.net>
# Maintainer: Clayton Craft <clayton@craftyguy.net>
pkgname=py3-ipdb
pkgver=0.13.9
pkgrel=1
pkgdesc="IPython debugger"
url="https://github.com/gotcha/ipdb"
arch="all"
license="BSD"
depends="ipython"
makedepends="py3-setuptools py3-toml"
checkdepends="py3-mock"
source="$pkgname-$pkgver.tar.gz::https://github.com/gotcha/ipdb/archive/$pkgver.tar.gz"
builddir="$srcdir/ipdb-$pkgver"
options="!check"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --skip-build --prefix=/usr --root="$pkgdir"

	ln -s ipdb3 "$pkgdir"/usr/bin/ipdb

	install -Dm644 COPYING.txt "$pkgdir"/usr/share/licenses/$pkgname/COPYING.txt
}

sha512sums="
9a100901442e5d32c131790c549e0bc13748ac5894af6ffc202ea5bffd7f63993bab64259e7ece5c7fdf4c16d8d69785639bf6c63945190ff21752cb482c4a4e  py3-ipdb-0.13.9.tar.gz
"
